//
//  WASettingController.m
//  WalkiOS
//
//  Created by luqiuan on 2019/10/18.
//  Copyright © 2019 Chenmuzhou. All rights reserved.
//

#import "WASettingController.h"
#import "WARedisterViewController.h"

@interface WASettingController ()
@property (weak, nonatomic) IBOutlet UILabel *inviteLB;
@property (weak, nonatomic) IBOutlet UILabel *visonLB;

@end

@implementation WASettingController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.visonLB.text = [NSString stringWithFormat:@"版本号：V%@",[WNTool currentAppVersion]];
    if(self.loginManager.userInfo.suserid.integerValue == 0){
        self.inviteLB.text = @"我的推荐人：无";
    }else{
        self.inviteLB.text = [NSString stringWithFormat:@"我的推荐人：%@",self.loginManager.userInfo.suserid];
    }
        
}


- (IBAction)backAction:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)exchangePassAction:(id)sender {
    WARedisterViewController *VC = [[WARedisterViewController alloc] initWithType:2];
    [self.navigationController pushViewController:VC animated:YES];
}
- (IBAction)loginPassAction:(id)sender {
    WARedisterViewController *VC = [[WARedisterViewController alloc] initWithType:1];
    [self.navigationController pushViewController:VC animated:YES];
}
- (IBAction)loginOutAction:(id)sender {
    [self.loginManager loginOut];
    [self.navigationController popViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
